﻿using Main.UI;
using Main.UI.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WeifenLuo.WinFormsUI.Docking;

namespace Main.Engine
{
    class DockPanelWrapper : IDockPanel
    {
        public static IDockPanel Instance { get; private set; }
        static DockPanelWrapper() { Instance = new DockPanelWrapper(); }

        private DockPanelWrapper()
        {
            Panel = Console.Instance.MainDock;
        }

        private DockPanel Panel { get; set; }


        public void Adjust(Visibility value)
        {
            if (value == Visibility.Show)
            {
                Panel.Show();
            }
            else if (value == Visibility.Show)
            {
                Panel.Hide();
            }
        }
    }
}
